package login.handler;

import connect.ClientMessageCode;
import connect.Transmitter;
import util.ByteBuffer;
import backlet.LogicHandler;

public class MoveHandler extends LogicHandler {

	@Override
	public void deal(ByteBuffer data, int sessionId)
	{
	 	int x = data.readInt();
    	int y = data.readInt();
    	int m = data.readInt();
    	int n = data.readInt();
    	
    	data.clear();
    	data.writeInt(ClientMessageCode.PLAYER.BID);
    	data.writeInt(ClientMessageCode.PLAYER.PLAYER_MOVE);
    	data.writeInt(sessionId);
    	data.writeInt(x);
    	data.writeInt(y);
    	data.writeInt(m);
    	data.writeInt(n);
    	
		Transmitter.sendToOthers(sessionId,data);

	}

}
